package jdk8.homework.Demo06;

public class Demo06 {
    public static void main(String[] args) {
        long a = 100;
        long b = 100;

        hh((Long aa, Long bb) -> {
            return aa + bb;
        }, a, b);

        hh((Long aa, Long bb) -> {
            return aa * bb;
        }, a, b);
    }

    private static void hh(Get<Long, Long> get, long a, long b) {
        Long aLong = get.get(a, b);
        System.out.println(aLong);
    }
}
